<template>
  <div class="commonheader">
    <i class="iconback" @click="childMethod()"></i>
    <h3>{{title}}</h3>
  </div>
</template>

<script>
export default {
  name: 'checkHeader',
  data () {
    return {}
  },
  methods: {
    childMethod () {
      // 头部返回方法
      this.$emit('fatherMethod')
    }
  },
  props: {
    // 接收的类型是string
    title: String
  }
}
</script>

<style lang="stylus" scoped>
</style>
